package com.kaifamiao.kfm.service;

import com.kaifamiao.kfm.entity.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kaifamiao.kfm.entity.TreeMenuDTO;

import java.util.Collection;
import java.util.List;

/**
* @author 10854
* @description 针对表【sys_menu(菜单权限表)】的数据库操作Service
* @createDate 2022-08-21 15:22:43
*/
public interface SysMenuService extends IService<SysMenu> {

    List<SysMenu> findByRoleId(Long roleId);

    public List<TreeMenuDTO> treeMenu(Collection<SysMenu> collection);
}
